Skip to content

[SPARK-59455][PYTHON] Move Arrow-to-pandas batch conversion into ArrowToPandasConversion - #58754

Closed
Spenserrrr wants to merge 1 commit into
apache:masterfrom
Spenserrrr:arrow-to-pandas-refactor
Closed

Spenserrrr wants to merge 1 commit into
apache:masterfrom
Spenserrrr:arrow-to-pandas-refactor

Conversation

@Spenserrrr

@Spenserrrr Spenserrrr commented Sep 12, 2026

Copy link
Copy Markdown
Contributor

What changes were proposed in this pull request?

Rename ArrowArrayToPandasConversion to ArrowToPandasConversion and move ArrowBatchTransformer.to_pandas into it, updating callers, tests, and benchmarks.

Why are the changes needed?

#53963 has a review discussion about moving to_pandas into ArrowToPandasConversion. This groups batch and column conversion in the directional converter and keeps ArrowBatchTransformer focused on Arrow-to-Arrow operations.

Does this PR introduce any user-facing change?

No.

How was this patch tested?

Existing conversion tests and baseline-versus-refactor parity probes under pandas 2 and 3, plus benchmark smoke checks.

Was this patch authored or co-authored using generative AI tooling?

Generated-by: Codex (GPT-6)

@Spenserrrr Spenserrrr changed the title [SPARK-59454][PYTHON] Move Arrow-to-pandas batch conversion into ArrowToPandasConversion [SPARK-59455][PYTHON] Move Arrow-to-pandas batch conversion into ArrowToPandasConversion Sep 12, 2026
@Spenserrrr
Spenserrrr marked this pull request as ready for review September 13, 2026 07:45
@Spenserrrr

Copy link
Copy Markdown
Contributor Author

Hi @Yicong-Huang @zhengruifeng! This PR moves to_pandas into ArrowToPandasConversion, following the discussion in #53963. Could you take a look when you have time? Thanks!
cc @gaogaotiantian

@Yicong-Huang Yicong-Huang left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks for helping moving the method!

@uros-b

uros-b commented Sep 14, 2026

Copy link
Copy Markdown
Member

Thank you @Spenserrrr and @Yicong-Huang!

Yicong-Huang pushed a commit that referenced this pull request Sep 14, 2026
…wToPandasConversion

### What changes were proposed in this pull request?

Rename `ArrowArrayToPandasConversion` to `ArrowToPandasConversion` and move `ArrowBatchTransformer.to_pandas` into it, updating callers, tests, and benchmarks.

### Why are the changes needed?

[#53963](#53963) has a [review discussion](#53963 (comment)) about moving `to_pandas` into `ArrowToPandasConversion`. This groups batch and column conversion in the directional converter and keeps `ArrowBatchTransformer` focused on Arrow-to-Arrow operations.

### Does this PR introduce _any_ user-facing change?

No.

### How was this patch tested?

Existing conversion tests and baseline-versus-refactor parity probes under pandas 2 and 3, plus benchmark smoke checks.

### Was this patch authored or co-authored using generative AI tooling?

Generated-by: Codex (GPT-6)

Closes #58754 from Spenserrrr/arrow-to-pandas-refactor.

Authored-by: Spenser Sun <hsun112358@gmail.com>
Signed-off-by: Yicong-Huang <17627829+Yicong-Huang@users.noreply.github.com>
(cherry picked from commit 3033357)
Signed-off-by: Yicong-Huang <17627829+Yicong-Huang@users.noreply.github.com>
@Yicong-Huang

Copy link
Copy Markdown
Contributor

Merge Summary:

Posted by merge_spark_pr.py

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants